home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmPM_801_MakeFile < prev    next >
Encoding:
Makefile  |  1992-04-08  |  3.9 KB  |  115 lines

  1. #    File:       %AppFilename%.MAMake
  2. #   Target:     %AppFilename%  
  3. #    Created %date% %time% by AppMaker
  4.  
  5. #    MABuild creates a .make file which
  6. #        compiles source files as needed
  7. #        runs Rez to create .rsrc files from .r files of the same name
  8. #        links the object files
  9. #        runs Rez to create resources and to copy the linked CODE
  10. #            its output is a temporary file
  11. #        runs PostRez to convert cmnu resources into MENU/mntb resources
  12. #            PostRez also sets the applications type and creator
  13. #                from its BNDL resource
  14. #        moves the built application from the temporary folder
  15. #            to the specified output folder.
  16. #        optionally, runs the built application
  17.  
  18. #    MABuild uses this file, and the file "Build Rules and Dependencies",
  19. #        and many MPW variables set by {MacApp}Startup as input.
  20.  
  21.  
  22. #---------------------------------------------------------------------------------------------------
  23. #    List here the Application's Name and Creator Type
  24.  
  25. AppName = %AppFilename% 
  26. Creator = 'XXXX'
  27.  
  28.  
  29. #---------------------------------------------------------------------------------------------------
  30. #    List any additional interfaces that your application is dependent on
  31. #    If any of these change, then M{AppName}, U{AppName},
  32. #    and {AppName} will be recompiled
  33.  
  34. BuildingBlockIntf =  ∂
  35.         "{MAPInterfaces}UGridView.p" ∂
  36.         "{MAPInterfaces}UTEView.p" ∂
  37.         "{MAPInterfaces}UDialog.p" ∂
  38.         "{MAPInterfaces}UPrinting.p"
  39.  
  40.  
  41. #---------------------------------------------------------------------------------------------------
  42. #    Express any additional dependencies for separate compilations.
  43. #    Include dependencies for the MacApp and Building block interfaces
  44. #    if you are dependent on them
  45.  
  46. "{ObjApp}M%AppName%.p.o"%    %ƒ    "{SrcApp}M%AppName%.p" ∂
  47.                                 "{SrcApp}U%AppName%.p"
  48.  
  49. "{ObjApp}U%AppName%.p.o"%    %ƒ    "{SrcApp}U%AppName%.p" ∂
  50.                                 "{SrcApp}U%AppName%.inc.p" ∂
  51.                                 "{SrcApp}U%AppName%Doc.p" ∂
  52.                                 %for each dialog gen dependency%
  53.                 "{SrcApp}ResourceDefs.p"
  54.  
  55. "{ObjApp}U%AppName%Doc.p.o"%    %ƒ    "{SrcApp}U%AppName%Doc.p" ∂
  56.                                     "{SrcApp}U%AppName%Doc.inc.p" ∂
  57.                                     %for each window gen dependency%
  58.                 "{SrcApp}ResourceDefs.p"
  59. %for each window gen makeDepend%
  60.  
  61. %for each dialog gen makeDepend%
  62.  
  63. "{ObjApp}UAMLibraryM.p.o"%    %ƒ    "{MAPInterfaces}UAMLibraryM.p" ∂
  64.                                 "{MAPInterfaces}UAMLibraryM.inc.p"
  65.     {MAEcho} {EchoOptions} "Compiling:     UAMLibraryM.p"
  66.     {MAPascal} ∂
  67.         {PascalOptions} ∂
  68.         {OtherPascalOptions} ∂
  69.         {PascalLoadOptions} ∂
  70.         -i "{SrcApp}" ∂
  71.         -i "{MAPInterfaces}" ∂
  72.         -o "{ObjApp}UAMLibraryM.p.o" ∂
  73.         "{MAPInterfaces}"UAMLibraryM.p
  74.  
  75.  
  76. #---------------------------------------------------------------------------------------------------
  77. #    By default MacApp.make links the above libraries, all of MacApp,
  78. #    and the files UAppName.p.o and MAppName.p.o
  79. #    List any additional files that your program links with:
  80.  
  81. OtherLinkFiles =     ∂
  82.         "{ObjApp}UAMLibraryM.p.o" ∂
  83.         %for each dialog gen linkFile%
  84.         %for each window gen linkFile%
  85.         "{ObjApp}U%AppName%Doc.p.o"
  86.  
  87.  
  88. #---------------------------------------------------------------------------------------------------
  89. #    Specify any -sn (segment alias) linker options that you want included.
  90.  
  91. OtherSegMappings = ∂
  92.         -sn XxxxInit=GInit
  93.  
  94.  
  95. #---------------------------------------------------------------------------------------------------
  96. #    List Rez files other than AppName.r that need to Rez'ed with the application
  97.  
  98. OtherRezFiles =             
  99.  
  100.  
  101. #---------------------------------------------------------------------------------------------------
  102. #    List resource files that a Rez file includes if you want to include
  103. #    more or less than the standard set
  104.  
  105. OtherRsrcFiles = ∂
  106.         "{SrcApp}%AppFilename%"
  107.  
  108.  
  109. #---------------------------------------------------------------------------------------------------
  110. #    "dummy up" MAPostRez to not run PostRez.  Since AppMaker already created
  111. #    MENU/mntb resources, running PostRez is unnecessary (and harmful because
  112. #    it deletes the existing mntb resource).
  113.  
  114. MAPostRez = SetFile -t APPL -c {Creator}
  115.